<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 判断这个数是否质数
        function zhisu(a) {
            for (var i = 2; i < a; i++) {
                if (a % i === 0) {
                    return
                }
            }
            
            console.log(a)
        }
        // 构建两个数字之间的质数判断与输出
        function num(b, c) {
            for (var j = b; j <= c; j++) {
                zhisu(j)
            }
            return n
        }

        //判断10~100之间的质数
        console.log(num(10, 100))
    </script>
</body>

</html>